﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Basic.Api.Models
{
    /// <summary>
    /// 系统菜单
    /// </summary>
    public class AuthorityMenuModel
    {
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string MenuName
        {
            get;set;
        }

        /// <summary>
        /// 地址
        /// </summary>
        public string MenuUrl
        {
            get;set;
        }

        /// <summary>
        /// 排序
        /// </summary>
        public int OrderNum
        {
            get;set;
        }

        /// <summary>
        /// 菜单ID
        /// </summary>
        public int MenuID
        {
            get; set;
        }

        /// <summary>
        /// 子级
        /// </summary>
        public List<ChildrenMenuModel> Children
        {
            get; set;
        }

        /// <summary>
        /// 编码
        /// </summary>
        public string MenuCode
        {
            get; set;
        }
    }

    /// <summary>
    /// 子级菜单
    /// </summary>
    public class ChildrenMenuModel
    {
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string MenuName
        {
            get; set;
        }

        /// <summary>
        /// 地址
        /// </summary>
        public string MenuUrl
        {
            get; set;
        }

        /// <summary>
        /// 排序
        /// </summary>
        public int OrderNum
        {
            get; set;
        }

        /// <summary>
        /// 菜单ID
        /// </summary>
        public int MenuID
        {
            get; set;
        }

        /// <summary>
        /// 编码
        /// </summary>
        public string MenuCode
        {
            get; set;
        }
    }
}